package com.example.springboot.service;

import com.example.springboot.controller.request.AdminPageRequest;
import com.example.springboot.controller.request.BasePageRequest;
import com.example.springboot.controller.request.LoginRequest;
import com.example.springboot.dto.AdminLoginDTO;
import com.example.springboot.entity.Admin;

import java.util.List;

/**
 * ClassName:AdminService
 * Package:com.example.springboot.service
 * Description:
 *
 * @Author: Gao
 * @Create: 2023/2/2 - 11:02
 */
public interface AdminService {
    List<Admin> list();

    Object pageInfo(BasePageRequest basePageRequest);

    void save(Admin admin);

    Admin getById(int id);

    void update(Admin admin);

    void deleteById(int id);

    AdminLoginDTO login(LoginRequest request);
}
